package com.wanyang.dos;

import java.io.Serializable;

public class PostDO implements Serializable {
    private Integer id;

    private Integer postCategoryId;

    private Integer areaId;

    private String title;

    private Integer publisherId;

    private Integer createTime;

    private Integer lastedUpdateTime;

    private Integer likesNumber;

    private Integer commentsNumber;

    private Boolean isPublish;

    private Boolean isDelete;

    private Boolean isApproved;

    private Boolean isTop;

    private String covers;

    private String detail;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPostCategoryId() {
        return postCategoryId;
    }

    public void setPostCategoryId(Integer postCategoryId) {
        this.postCategoryId = postCategoryId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(Integer publisherId) {
        this.publisherId = publisherId;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getLastedUpdateTime() {
        return lastedUpdateTime;
    }

    public void setLastedUpdateTime(Integer lastedUpdateTime) {
        this.lastedUpdateTime = lastedUpdateTime;
    }

    public Integer getLikesNumber() {
        return likesNumber;
    }

    public void setLikesNumber(Integer likesNumber) {
        this.likesNumber = likesNumber;
    }

    public Integer getCommentsNumber() {
        return commentsNumber;
    }

    public void setCommentsNumber(Integer commentsNumber) {
        this.commentsNumber = commentsNumber;
    }

    public Boolean getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(Boolean isPublish) {
        this.isPublish = isPublish;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public Boolean getIsApproved() {
        return isApproved;
    }

    public void setIsApproved(Boolean isApproved) {
        this.isApproved = isApproved;
    }

    public Boolean getIsTop() {
        return isTop;
    }

    public void setIsTop(Boolean isTop) {
        this.isTop = isTop;
    }

    public String getCovers() {
        return covers;
    }

    public void setCovers(String covers) {
        this.covers = covers;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", postCategoryId=").append(postCategoryId);
        sb.append(", areaId=").append(areaId);
        sb.append(", title=").append(title);
        sb.append(", publisherId=").append(publisherId);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastedUpdateTime=").append(lastedUpdateTime);
        sb.append(", likesNumber=").append(likesNumber);
        sb.append(", commentsNumber=").append(commentsNumber);
        sb.append(", isPublish=").append(isPublish);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", isApproved=").append(isApproved);
        sb.append(", isTop=").append(isTop);
        sb.append(", covers=").append(covers);
        sb.append(", detail=").append(detail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}